package com.ymttest.common.order.userquery.model.vo;

import com.ymttest.utils.DataUtil;


/**
 * 卖家信息
 * 
 * @author luoshiqian 2016/12/28 13:00
 */
public class SellerInfo  {

    /**
     * 卖家Id
     */
    private long userId;
    /**
     * 卖家留言
     */
    private String sellerNote;
    /**
     * 卖家名称
     */
    private String sellerLoginId;

    public SellerInfo(long userId, String sellerNote, String sellerLoginId) {
        this.userId = userId;
        this.sellerNote = sellerNote;
        this.sellerLoginId = sellerLoginId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getSellerNote() {
        return sellerNote;
    }

    public void setSellerNote(String sellerNote) {
        this.sellerNote = sellerNote;
    }

    public String getSellerLoginId() {
        return sellerLoginId;
    }

    public void setSellerLoginId(String sellerLoginId) {
        this.sellerLoginId = sellerLoginId;
    }
    
    public void verify(SellerInfo that){
    	String className = this.getClass().getSimpleName();
    	DataUtil.verify(this.getUserId(), that.getUserId(),String.format("验证%s.userId", className));
		DataUtil.verify(this.getSellerNote(), that.getSellerNote(),String.format("验证%s.SellerNote", className));
		DataUtil.verify(this.getSellerLoginId(), that.getSellerLoginId(),String.format("验证%s.SellerLoginId", className));
    }
}
